package com.example.administrator.testdagger.design.state;

import android.content.Context;

/**
 * com.example.administrator.testdagger.design.state
 * (c)2018 AIR Times Inc. All rights reserved.
 *
 *
 * @author WangJQ
 * @version 1.0
 * @date 2018/6/25 15:47
 * @see com.example.administrator.testdagger.design.state
 */
public class LoginContext {
    UserState userState = new LoginState();

    static LoginContext loginContext = new LoginContext();

    private LoginContext() {

    }

    public static LoginContext getLoginContext() {
        return loginContext;
    }

    public void setUserState(UserState userState) {
        this.userState = userState;
    }

    public void forward(Context context) {
        this.userState.forward(context);
    }

    public void comment(Context context) {
        this.userState.commend(context);
    }
}
